package com.feign.bean;

import com.feign.instance.TestFeignInstance;
import org.springframework.stereotype.Component;

/**
 * @ClassName: HiHystrix
 * @Author: ZhangYue26
 * @Description: 如果开启熔断器机制，并且在@FeignClient注解中的fallback属性中需要指定处理失败逻辑类，
 * 该类必须要实现@FeignClient注解修饰的接口interface，同时需要将该类注入到Ioc容器中
 * @Date: 2021-01-13
 */
@Component
public class HiHystrix implements TestFeignInstance {
    @Override
    public String sayHello(String name) {
        return "FeignClient执行处理失败逻辑";
    }
}
